package com.woniuxy.signing.client;

import com.woniuxy.commons.util.Result;
import com.woniuxy.signing.client.form.MakeSureSignForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @auther 黄磊
 * @2022/8/7 18:25
 **/
@FeignClient(contextId = "cocahSigningVenueClient", name = "signing-server", path = "/signing")
public interface CocahSigningVenueClient {

    /*
     * @Description:学员选课确定场馆签约教练
     * @param makeSureSignForm
     * @return: com.woniuxy.commons.util.Result
     * @Author: 黄磊
     * @Date: 2022/8/7 18:33
     */

    @PostMapping("/cocahSigningVenue/makeSureSign")
    Result makeSureSign(@RequestBody MakeSureSignForm makeSureSignForm);

    /**
     * @param venueId
     * @Description:根据场馆id查出所签教练的id集合
     * @return: com.woniuxy.commons.util.Result<java.util.List < java.lang.Integer>>
     * @Author: 黄磊
     * @Date: 2022/8/9 18:02
     */

    @GetMapping("/cocahSigningVenue/getCoachListByVenueId")
    Result<List<Integer>> getCoachListByVenueId(@RequestParam Integer venueId);


    @GetMapping("/cocahSigningVenue/getVenueIdToCoachId")
    Result<Integer> getVenueIdToCoachId(@RequestParam Integer cocahId);

}
